package org.opsli.modulars.business.iot.protocol;

/**
 * @author sst
 * @version V1.0
 * @Package com.lysoft.monitoring.iot.protocol
 * @date 2019-08-22 14:27
 * 自定义tcp协议
 */
public class TCPProtocol {

    private byte head_data = Constans.HEAD_DATA;
    private short headLen=21;
    private byte[] adderss;
    private byte identify=Constans.IDENTIFY;
    private byte afn=0x01;
    private byte contentLength=0x01;
    private byte[] data;
    private byte[] date;
    private byte cs;
    private byte tail=Constans.TAIL;

    public TCPProtocol(byte[] adderss) {
        this.adderss = adderss;
    }

    public byte getHead_data() {
        return head_data;
    }

    public void setHead_data(byte head_data) {
        this.head_data = head_data;
    }

    public short getHeadLen() {
        return headLen;
    }

    public void setHeadLen(short headLen) {
        this.headLen = headLen;
    }

    public byte[] getAdderss() {
        return adderss;
    }

    public void setAdderss(byte[] adderss) {
        this.adderss = adderss;
    }

    public byte getIdentify() {
        return identify;
    }

    public void setIdentify(byte identify) {
        this.identify = identify;
    }

    public byte getAfn() {
        return afn;
    }

    public void setAfn(byte afn) {
        this.afn = afn;
    }

    public byte getContentLength() {
        return contentLength;
    }

    public void setContentLength(byte contentLength) {
        this.contentLength = contentLength;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public byte[] getDate() {
        return date;
    }

    public void setDate(byte[] date) {
        this.date = date;
    }

    public byte getCs() {
        return cs;
    }

    public void setCs(byte cs) {
        this.cs = cs;
    }

    public byte getTail() {
        return tail;
    }

    public void setTail(byte tail) {
        this.tail = tail;
    }
}
